From: Jonas Dreßler Date: Tue, 12 May 2020 11:51:27 +0000 (+0200) Subject: windowManager: Also clear animationInfo when size-changed wasn't emitted X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~258 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8078d78c30f9fde233d54c665bcd5c0fa80ea963;p=gnome-shell.git windowManager: Also clear animationInfo when size-changed wasn't emitted It might be that we receive a "kill-window-effects" signal between the emission of the "size-change" and the "size-changed" signal. In this case we already have the animationInfo attached to the window actor, so we should also remove it. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1251 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index e05c02305..61d4f96f1 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1385,8 +1385,10 @@ var WindowManager = class { this._clearAnimationInfo(actor); } - if (this._resizePending.delete(actor)) + if (this._resizePending.delete(actor)) { + this._clearAnimationInfo(actor); this._shellwm.completed_size_change(actor); + } } _hasAttachedDialogs(window, ignoreWindow) {